package com.yand.thinkingInJava.thinkingInJava21.catchException;



/**
 * 线程中抛出了异常 但是却没有捕获到
 */
public class ExceptionThread implements Runnable {


    public  void run(){
        throw new RuntimeException("asdsasdsa");
    }




    public static void main(String [] args){


        try {
            new Thread(new ExceptionThread()).start();
            /*ExecutorService exec = Executors.newCachedThreadPool();


            exec.execute(new ExceptionThread());*/
        }catch (RuntimeException e){
            //压根就不是一个线程肯定捕获不到
            System.out.println("1111111111111");
        }
        }
}
